086259bb11f01069a770c809575b60c00287144b,fcrepo-serialization/src/test/java/org/fcrepo/camel/serialization/integration/RouteIT.java,RouteIT,doPreSetup,#,70
Before Change
@Override
protected void doPreSetup() throws Exception {
final FcrepoClient client = new FcrepoClient(null, null, null, true);
final FcrepoResponse res = client.post(
URI.create("http://localhost:" + FCREPO_PORT + "/fcrepo/rest"),
ObjectHelper.loadResourceAsStream("indexable.ttl"), "text/turtle");
fullPath = res.getLocation().toString();
}
After Change
@Override
protected void doPreSetup() throws Exception {
final FcrepoClient client = client().throwExceptionOnFailure().build();
final FcrepoResponse res = client.post(URI.create("http://localhost:" + FCREPO_PORT + "/fcrepo/rest"))
.body(loadResourceAsStream("indexable.ttl"), "text/turtle").perform();
fullPath = res.getLocation().toString();
}